<?php

	/*==================================================================*/
	/*		文件名:IndexAction                                    */
	/*		概要:初始化整个frame         */
	/*==================================================================*/



	class IndexAction extends CommonAction {
		
		//进入管理员后台首页
		function index(){
			$this->display("admin/public/index.tpl");
		}
		function top(){
			$this->display("admin/public/top.tpl");
		}

		function menu(){
			$this->display("admin/public/menu.tpl");
		}

		function main(){
			$this->assign("tmess", '请操作左侧菜单，对本网站的内容进行管理.');	
			$this->display("admin/public/main.tpl");
		}
		function bottom(){
			$album=new AlbumModel();
			$this->assign("albums", $album->total());
			$image=new ImageModel();
			$this->assign("images", $image->total());
			$column=new ColumnModel();
			$this->assign("columns", $column->total());
			$article=new ArticleModel();
			$this->assign("articles", $article->total());
			$user=new UserModel();
			$this->assign("users", $user->total());
			$fLink=new FlinkModel();
			$this->assign("flinks", $fLink->total());
			$this->display("admin/public/bottom.tpl");
		}
	}
